package com.cipe.cmrs.model;

import java.sql.Timestamp;
import java.util.List;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * <p>
 * Pojo mapping TABLE dbo.actionaltertchangenotifications
 * </p>
 * 
 * <p>
 * Generated at Thu Dec 29 11:59:26 PKT 2011
 * </p>
 * 
 * @author Incepio
 * 
 */
@Entity
@Table(name = "actionaltertchangenotifications")
@SuppressWarnings("serial")
public class Actionaltertchangenotifications extends BaseAuditEntity {

	/**
	 * Attribute module.
	 */
	@Basic
	@Column(name = "module", length = 50)
	private String module;

	/**
	 * Attribute noticetype.
	 */
	@Basic
	@Column(name = "noticetype", length = 15)
	private String noticetype;

	/**
	 * Attribute noticedate.
	 */
	@Basic
	@Column(name = "noticedate")
	private Timestamp noticedate;

	/**
	 * Attribute message.
	 */
	@Basic
	@Column(name = "message", length = 1000)
	private String message;

	/**
	 * Attribute noticequery.
	 */
	@Basic
	@Column(name = "noticequery", length = 4000)
	private String noticequery;

	/**
	 * Attribute completed.
	 */
	private Boolean completed;

	/**
	 * Attribute alertstype
	 */
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "alerttypeid")
	private Alertstype alertstype;

	/**
	 * Attribute changetype
	 */
    @ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "changetypeid")
	private Changetype changetype;

	/**
	 * List of Useractionalertschanges
	 */
	@OneToMany()
	private List<Useractionalertschanges> useractionalertschangess = null;

	/**
	 * @return module
	 */

	public String getModule() {
		return module;
	}

	/**
	 * @param module
	 *            new value for module
	 */
	public void setModule(String module) {
		this.module = module;
	}

	/**
	 * @return noticetype
	 */

	public String getNoticetype() {
		return noticetype;
	}

	/**
	 * @param noticetype
	 *            new value for noticetype
	 */
	public void setNoticetype(String noticetype) {
		this.noticetype = noticetype;
	}

	/**
	 * @return noticedate
	 */

	public Timestamp getNoticedate() {
		return noticedate;
	}

	/**
	 * @param noticedate
	 *            new value for noticedate
	 */
	public void setNoticedate(Timestamp noticedate) {
		this.noticedate = noticedate;
	}

	/**
	 * @return message
	 */

	public String getMessage() {
		return message;
	}

	/**
	 * @param message
	 *            new value for message
	 */
	public void setMessage(String message) {
		this.message = message;
	}

	/**
	 * @return noticequery
	 */

	public String getNoticequery() {
		return noticequery;
	}

	/**
	 * @param noticequery
	 *            new value for noticequery
	 */
	public void setNoticequery(String noticequery) {
		this.noticequery = noticequery;
	}

	/**
	 * @return completed
	 */

	public Boolean getCompleted() {
		return completed;
	}

	/**
	 * @param completed
	 *            new value for completed
	 */
	public void setCompleted(Boolean completed) {
		this.completed = completed;
	}

	/**
	 * get alertstype
	 */

	public Alertstype getAlertstype() {
		return this.alertstype;
	}

	/**
	 * set alertstype
	 */
	public void setAlertstype(Alertstype alertstype) {
		this.alertstype = alertstype;
	}

	/**
	 * get changetype
	 */

	public Changetype getChangetype() {
		return this.changetype;
	}

	/**
	 * set changetype
	 */
	public void setChangetype(Changetype changetype) {
		this.changetype = changetype;
	}

	/**
	 * Get the list of Useractionalertschanges
	 */

	public List<Useractionalertschanges> getUseractionalertschangess() {
		return this.useractionalertschangess;
	}

	/**
	 * Set the list of Useractionalertschanges
	 */
	public void setUseractionalertschangess(List<Useractionalertschanges> useractionalertschangess) {
		this.useractionalertschangess = useractionalertschangess;
	}

}